package com.wtwd.campus.fjryE15.service.impl;

import com.wtwd.campus.fjryE15.service.FjryAuthService;
import com.wtwd.campus.fjryE15.untils.XyyUtiils;
import org.springframework.stereotype.Service;

/**
 * @author mjy
 * @date 2022/09/21
 * @description
 */
@Service
public class FjryAuthServiceImpl implements FjryAuthService {


    @Override
    public boolean authRequest( String time, String randomStr, String sign) {
        return sign.equals(XyyUtiils.getRySign(XyyUtiils.APP_ID, time, randomStr, XyyUtiils.APP_KEY));
    }
}
